/*
 * @Author: Li Zengkun
 * @Date: 2022-09-26 19:51:39
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-26 19:53:46
 * @Description: 
 */
import axios from "axios"

// 根据县区id获取街道(镇)
const getTown = (params) => axios.get('/pcct/town', { params })

// 根据市区id获取县区
const getCounty = (params) => axios.get('/pcct/county', { params })

// 根据省份id获取城市
const getCity = (params) => axios.get('/pcct/city', { params })

//  获取所有省份
const getProvince = (params) => axios.get('/pcct/province', { params })

export default {
    getTown,
    getCounty,
    getCity,
    getProvince
}